<template>
  <div style="width:100%;">
    <el-date-picker
       v-model="nv[fvData.fdLayout.name]"
       :disabled="disabled"
       type="datetime"
       value-format="YYYY-MM-DD HH:mm:ss"
       placeholder="选择日期时间"
       style="width:100%;"
       v-if="nv">
    </el-date-picker>
    <span v-else>当前没有数据来源</span>
  </div>
</template>

<script>
import { computed, ref } from 'vue'
export default {
  name: 'FvDatetimeInput',
  props: {
    fvData: {
      default: null,
      type: Object
    }
  },
  setup(props) {
    const nv = computed(() => {
      return props.fvData.getNv();
    });
    const disabled = ref(false);

    return {
      nv,
      disabled
    }
  }
}
</script>

<style>

</style>
